import React, { Component } from 'react'
import {  Route } from 'react-router-dom'
import Header from './components/Header'
import Home from './pages/Home'
import About from './pages/About'
import MyNavLink from './components/MyNavLink'
export default class App extends Component {

    render() {

        return (
            <div>
                <div className="row">
                    <div className="col-xs-offset-2 col-xs-8">
                        <Header/>
                    </div>
                </div>
                <div className="row">
                    <div className="col-xs-2 col-xs-offset-2">
                        <div className="list-group">
                            {/* <a className="list-group-item active" href="./about.html">About</a>
                            <a className="list-group-item" href="./home.html">Home</a> */}
                            
                             <MyNavLink to='/about' >About</MyNavLink>  
                             <MyNavLink to='/home' >Home</MyNavLink>  

                            
                        </div>
                    </div>
                    <div className="col-xs-6">
                        <div className="panel">
                            <div className="panel-body">
                               
                                    <Route path='/about' component={About} />
                                    <Route path='/home' component={Home} />
                                

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        )
    }
}
